<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/1.js"></script>
    <script src="../js/2.js"></script>
</head>

<body>

</body>
<script>

    // 传统的JS可以将页面中的JS代码分离成相互依赖的小文件   => 功能分离(按照自己的需要引入)
    // 引入的JS文件   => 变量和方法还是会挂载全局    

    // console.log(a, addA, reduceA, doubleA);
    // console.log(objA);

    var res = A();
    console.log(res);



    console.log(b, addB, reduceB, doubleB);



</script>

</html>